<form action="<?php e_page("message","index");?>" method="get">
    <fieldset>
        <legend></legend>
        <label for="user_tel">用户手机号</label>
        <input type="text" name="user_tel" id="user_tel" placeholder="请输入收到消息的用户手机号">
        <input type="submit">
    </fieldset>
</form>
<table id="dataTable">
    <thead>
    <tr>
        <th>ID</th>
        <th>用户手机号</th>
        <th>标题</th>
        <th>内容</th>
        <th>类型</th>
    </tr>
    </thead>
    <tbody>
    <?php foreach($r['msg_info'] as $v){?>
        <tr>
            <td><?php echo $v['id'];?></td>
            <td><?php echo $v['user_id']?></td>
            <td><?php echo $v['title'];?>
            <td><?php echo $v['content'];?></td>

            <td><?php
                switch($v['type']){
                    case 'system':echo "系统消息";break;
                    case 'shop':echo "商家消息";break;
                    case 'recommend':echo "推荐消息";break;
                };
                ?></td>
        </tr>
    <?php } ?>
    </tbody>
</table>
<?php
/** @var Page $page */
$page=$r['pages'];
?>
<?php echo $page->getPageHtml(); ?>